package com.jessechanrui.template.shardingsphere.demo.dto;

import com.jessechanrui.template.skeleton.common.base.BaseDTO;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import javax.validation.constraints.NotEmpty;

/**
 * @author chenrui
 * @date 2024/1/30
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class DemoDTO extends BaseDTO {

    @ApiModelProperty(value = "id")
    private Integer id;

    @ApiModelProperty(value = "name")
    @NotEmpty(message = "名称不能为空")
    private String name;
}
